public class DataQualityUtilities {
    public static String capitalizeFirstLetter(String s) {
        if(s==null) return s;
        String[] words = s.split('\\s',0);
        String ret = '';
        for(String w: words)
        {
        	//do not capitalize "and"
        if(w!='and') w=capitalizeWord(w);
            ret += w+' ';
        }
        return ret;
    } 
    
    public static String capitalizeWord(String s) {
        String capitalized=s;
        if((s!=null)&&(s.length()>0))
            capitalized = s.substring(0,1).toUpperCase() + (s.length()>1?s.substring(1):'');
        return capitalized;
    
    }
        public static String capitalizeFirstTwoLetter(String s2) {
        String capitalized=s2;
        if((s2!=null)&&(s2.length()>0)) {
          if(s2.length()<3)
            capitalized = s2.substring(0,2).toUpperCase();
          else
            capitalized = s2.substring(0,1).toUpperCase() + s2.substring(2);
          
            
        }
        return capitalized;
    } 
}